#ifndef COMPANYCARD_H
#define COMPANYCARD_H

#include <QWidget>

namespace model {
class CompanyInfo;
}

namespace Ui {
class CompanyCard;
}

class CompanyCard : public QWidget
{
    Q_OBJECT

public:
    explicit CompanyCard(QWidget *parent = nullptr);
    ~CompanyCard();

    void set(const model::CompanyInfo& companyInfo);

signals:
    void clicked();

private:
    void init();
    void initStyleSheet();
    void initPanel();

    void mousePressEvent(QMouseEvent *event) override;
    void mouseReleaseEvent(QMouseEvent *event) override;
    void mouseMoveEvent(QMouseEvent *event) override;
private:
    Ui::CompanyCard *ui;
};

#endif // COMPANYCARD_H
